package cn.xbtop.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.xbtop.mapper.TTransactionMapper;
import cn.xbtop.bean.TTransaction;
import cn.xbtop.service.TTransactionService;
/**
 * @author  Mxb
 * @date  2020/6/6 18:36
 * @version 1.0
 */
@Service
public class TTransactionServiceImpl implements TTransactionService{

    @Resource
    private TTransactionMapper tTransactionMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tTransactionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TTransaction record) {
        return tTransactionMapper.insert(record);
    }

    @Override
    public TTransaction selectByPrimaryKey(Integer id) {
        return tTransactionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(TTransaction record) {
        return tTransactionMapper.updateByPrimaryKey(record);
    }

}
